package entity;

import java.sql.Time;

public class CasualSubscription extends Subscription{
	private int parking_lot_number;
	private Time leaving_time=new Time(0,0,0);
	public CasualSubscription()
	{
		super();
	}
	public int getParking_lot_number() {
		return parking_lot_number;
	}
	public void setParking_lot_number(int parking_lot_number) {
		this.parking_lot_number = parking_lot_number;
	}
	public Time getleaving_time() {
		return leaving_time;
	}
	public void setleaving_time(Time leaving_time) {
		this.leaving_time = leaving_time;
	}

	public void setleaving_time(int leaving_time_hour,int leaving_time_min,int leaving_time_sec) {
		Time leaving_time=new Time(leaving_time_hour,leaving_time_min,leaving_time_sec);
		this.leaving_time = leaving_time;
	}
	public String toString()
	{
		return(super.toString()+"\nparking lot number:  "+ getParking_lot_number()+"\nleaving hour:  "+ getleaving_time());
	}
}
